package guan.shop.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.Getter;

import java.io.Serializable;
import java.util.List;

@Data
@TableName("t_smallType")
public class SmallType implements Serializable {
    private Integer id;
    private String name;
    private String remark;
    private Integer bigTypeId;
    @TableField(select = false)
    private BigType bigType;
    @TableField(select = false)
    private List<Product> productList;

    public SmallType() {
    }

    public SmallType(Integer id, String name, String remark, Integer bigTypeId, BigType bigType, List<Product> productList) {
        this.id = id;
        this.name = name;
        this.remark = remark;
        this.bigTypeId = bigTypeId;
        this.bigType = bigType;
        this.productList = productList;
    }

    @Override
    public String toString() {
        return "SmallType{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", remark='" + remark + '\'' +
                ", bigTypeId=" + bigTypeId +
                ", bigType=" + bigType +
                ", productList=" + productList +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getBigTypeId() {
        return bigTypeId;
    }

    public void setBigTypeId(Integer bigTypeId) {
        this.bigTypeId = bigTypeId;
    }

    public BigType getBigType() {
        return bigType;
    }

    public void setBigType(BigType bigType) {
        this.bigType = bigType;
    }

    public List<Product> getProductList() {
        return productList;
    }

    public void setProductList(List<Product> productList) {
        this.productList = productList;
    }
}
